#include "test_module.h"

#include <mutex>

std::shared_ptr<TestModule> TestModule::GetInstance()
{
    if (instance == nullptr) {
        static std::mutex mutex;
        std::lock_guard<std::mutex> lock(mutex);
        if (instance == nullptr) {
            instance = std::make_shared<TestModule>();
        }
    }
    return instance;
}

int TestModule::Test()
{
    return 1;
}
